﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="CitizenDetailedView.aspx.cs" Inherits="WebForms.Doctor.CitizenDetailedView" %>

<%--XML stuff --%>
<%@ Import Namespace="System.Data" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1>Vital signs for <asp:Label runat="server" ID="citizenName" ></asp:Label></h1>
    <asp:HiddenField runat="server" ID="hfCitizenID"/>
    <fieldset>
        <legend>Add event</legend>
        <p>
            Event type: <asp:TextBox ID="txtEventType" runat="server"></asp:TextBox>
        </p>
        <p>
            Subject: <asp:TextBox ID="txtSubject" runat="server"></asp:TextBox>
        </p>
        <p>
            MainText: <asp:TextBox ID="txtMainText" runat="server"></asp:TextBox>
        </p>
        <p>
            Equipment: <asp:TextBox ID="txtEquipment" runat="server"></asp:TextBox>
        </p>
        <p>
            <asp:Button runat="server" Text="Save" ID="btnSave" onclick="Unnamed1_Click" />
        </p>
        <p>
            Event: <asp:DropDownList ID="ddlEvents" runat="server" DataTextField="Subject" DataValueField="EventId" />
        </p>
    </fieldset>

    

    <br />
    <div>
        Weight
    </div>
    <%-- weightGridView --%>
    <asp:GridView ID="weightGrid" runat="server" AutoGenerateColumns="False">
        <Columns>
            <asp:BoundField HeaderText="Date" DataField="dateVal" />
            <asp:BoundField DataField="weightVal" HeaderText="Weight [g]" />
            <asp:TemplateField HeaderText="Comment">
                <ItemTemplate>
                    <asp:TextBox ID="commentBox" runat="server" TextMode="MultiLine" style="resize:none;"/>
                </ItemTemplate>  
            </asp:TemplateField>
            
            <asp:TemplateField HeaderText="Save">
                <ItemTemplate>
                
                    <asp:CheckBox ID="CheckBox1" runat="server" />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <br />
    <div>
        Oximeter
    </div>
    <%-- Oximeter grid --%>
    <asp:GridView ID="oxiGr" runat="server" AutoGenerateColumns="False">
        <Columns>
            <asp:BoundField HeaderText="Date" DataField="dateVal" />
            <asp:BoundField HeaderText="HeartRate" DataField="heartRateVal" />
            <asp:BoundField DataField="saturationLevelVal" HeaderText="SaturationLevel" />
            <asp:TemplateField HeaderText="Comment">
                <ItemTemplate>
                    <asp:TextBox ID="commentBox" runat="server" TextMode="MultiLine" style="resize:none;" />
                </ItemTemplate>  
            </asp:TemplateField>
            
            <asp:TemplateField HeaderText="Save">
                <ItemTemplate>
                    <asp:CheckBox ID="CheckBox1" runat="server" />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <br />
    <div>
        BloodPressure
    </div>
    <%-- BloodPressure --%>
    <asp:GridView ID="bpGrid" runat="server" AutoGenerateColumns="False">
        <Columns>
            <asp:BoundField HeaderText="Date" DataField="dateVal" />
            <asp:BoundField DataField="systolicVal" HeaderText="Systolic" />
            <asp:BoundField DataField="diastolicVal" HeaderText="Diastolic" />
            <asp:BoundField DataField="hearRateVal" HeaderText="HeartRate" />
            <asp:TemplateField HeaderText="Comment">
                <ItemTemplate>
                    <asp:TextBox ID="commentBox" runat="server" TextMode="MultiLine" style="resize:none;" />
                </ItemTemplate>  
            </asp:TemplateField>
            
            <asp:TemplateField HeaderText="Save">
                <ItemTemplate>
                    <asp:CheckBox ID="CheckBox1" runat="server" />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <br />
    <div>
        ECG
    </div>
    <%-- ECG grid --%>
    <asp:GridView ID="ecgsGr" runat="server" AutoGenerateColumns="False">
        <Columns>
            <asp:BoundField HeaderText="Date" DataField="dateVal" />
            <asp:BoundField HtmlEncode="false" DataField="Values" HeaderText="Values" />
            <asp:TemplateField HeaderText="Comment">
                <ItemTemplate>
                    <asp:TextBox ID="commentBox" runat="server" TextMode="MultiLine" style="resize:none;" />
                </ItemTemplate>  
            </asp:TemplateField>
            
            <asp:TemplateField HeaderText="Save">
                <ItemTemplate>
                    <asp:CheckBox ID="CheckBox1" runat="server" />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <asp:Button ID="Button1" runat="server" Text="Save" OnClick="Button1_Click" />
</asp:Content>
